
#ifndef HTTP__HPP
#define HTTP__HPP
#include "Request.hpp"
#include "memory"
#include <sys/epoll.h>
#include "../../url/include/url.hpp"
#include "Response.hpp"
#include "httpRequest.hpp"


class HTTP{
private:
    // RequestHead ReqHead;  // old realse
    std::shared_ptr<HttpRequest> ReqHead;  // HTTP 包含有请求头
public:
    HTTP(int fd,int _epfd,struct epoll_event* _event,std::shared_ptr<HttpRequest>& head);
    // HTTP(std::shared_ptr<HttpRequest>& head);
    int client_fd; // 请求的文件描述符
    int epfd;  // epoll 的描述符
    struct epoll_event *event;  // epfd 的 event
    int reuqest();  // 对请求做处理
    std::shared_ptr<HttpRequest>& get_ReqHead();
    // ~HTTP();
};

#endif